﻿using System;
using System.Collections.Generic;
using System.Text;
using Sinacor.Infra.Service.Common;
using Sinacor.Infra.Service.Validation;

namespace Sinacor.Servico.Bovespa.Cliente.BusinessEntity
{
    /// <summary>
    /// BusinessEntity de ErroExportacaoComitente
    /// </summary>
    public class ErroExportacaoComitente : BaseBusinessEntity
    {
        #region Construtor

        /// <summary>
        /// Construtor da classe ErroExportacaoComitente
        /// </summary>
        public ErroExportacaoComitente()
            : base()
        {}

        #endregion

        #region Variáveis Privadas

        protected Int32? _codigo;
        protected String _descricao;

        #endregion

        #region Propriedades
        
        /// <summary>
        /// Codigo do Erro
        /// </summary>
        [NotNull(109353)]
        public Int32? Codigo
        {
            get { return _codigo; }
            set { _codigo = value; }
        }

        /// <summary>
        /// Descricao do Erro
        /// </summary>
        [NotNull(109354)]
        [NotEmpty(109354,true)]
        [NotNull(109354, "Alteracao")]
        [NotEmpty(109354, "Alteracao", true)]
        public String Descricao
        {
            get { return _descricao; }
            set { _descricao = value; }
        }

        #endregion
    }
}
